title: Cannot test store select subscribe
body: <p>I'm getting error "Cannot read property 'subscribe' of undefined" when trying to test this component ngOnInit();</p>
  
  <p>I've added select.and.callFake() which solved this issue some time ago, but now is not working.</p>
  
  <pre><code>ngOnInit() {
          this.store.select(STORE_USER_REPORT_INFO_STATE).subscribe((userReportInfo: any[]) =&gt; {
              if(userReportInfo){
                  userReportInfo.forEach((data)=&gt; {
                      if(data.InstanceId == this.id) {
                          this.isFavorite = data.IsFavorite;
                      }
                  });
              }
          });
      }
  
  
  describe('OnlineReportPopupComponent', () =&gt; {
  let component: OnlineReportPopupComponent;
  let fixture: ComponentFixture&lt;OnlineReportPopupComponent&gt;;
  let mockStoreUserReportAccessObservable: Observable&lt;any&gt;;
  let mockStore;
  beforeEach(() =&gt; {
  
          mockStore = jasmine.createSpyObj("Store", ["select"]);
          mockStore.select.and.callFake((stateType: string) =&gt; {
              switch (stateType) {
                  case STORE_USER_REPORT_INFO_STATE:
                      return mockStoreUserReportAccessObservable;
              }
          });
  
  TestBed.configureTestingModule({
              declarations: [ OnlineReportPopupComponent],
              providers: [
                  {provide: Store, useValue: mockStore}
              ]
          });
  fixture = TestBed.createComponent(OnlineReportPopupComponent);
          component = fixture.debugElement.componentInstance;
  fixture.detectChanges();
  
   });
  }
  
  </code></pre>