Angular 2.0.0 - Testing " imported by the module 'DynamicTestModule' " : <p>I am having a problem in testing app.component.ts in Angular 2. I am using angular-cli. Whenever I run ng test, my app.component.spec.ts makes the console prompt with the error: </p>

<pre><code> Failed: Unexpected directive 'HomeModuleComponent' imported by the module 'DynamicTestModule'
 Error: Unexpected directive 'HomeModuleComponent' imported by the module 'DynamicTestModule'
</code></pre>

<p>I imported the HomeModuleComponent in TestBed</p>

<pre><code>TestBed.configureTestingModule({
  declarations: [AppComponent],
  imports : [ HomeModuleComponent ]
});
</code></pre>

<p>Can anyone help me with this problem?</p>
