title: Ember Testing: Cannot read property 'createRecord' of null
body: <p>It appears that <code>store</code> is not available in my Ember tests, whether in the context of an <code>ObjectController</code> or within any unit tests.  My unit test:</p>
  
  <pre><code>`import {test, moduleFor} from "ember-qunit"`
  `import DS from "ember-data"`
  
  moduleFor "controller:register", "RegisterController", {
  }
  
  test "store is working", -&gt;
      expect 1
      controller = @subject()
      Ember.run(-&gt;
          sampleUser = controller.get("store").createRecord("user", {
              username: "myuser"
              password: "otherpassword"
          })
          ok(sampleUser instanceof DS.Model)
      )
  </code></pre>
  
  <p>The test will give:</p>
  
  <blockquote>
    <p>Died on test #1     at test
    (<code>http://localhost:4200/assets/vendor.js:73539:13</code>)
        at eval (app/tests/unit/controllers/register-test.js:19:5)
        at requireModule (<code>http://localhost:4200/assets/vendor.js:54:29</code>)
        at <code>http://localhost:4200/assets/test-loader.js:14:29</code>: Cannot read property 'createRecord' of null</p>
  </blockquote>
  
  <p>Can anyone explain why I am not able to access <code>DS</code> capabilities from either within my tests or from within the controller itself (when running tests)?</p>