title: Object has no method loginWithPassword Meteorjs mocha testing
body: <p>Hi I am trying to do a mocha test on my meteor app.
  My code is below for testing.</p>
  
  <pre><code>describe("logged in admin insertion test", function() {
      before(function(done) {
          Meteor.loginWithPassword('admin@admin.com', 'password', done)
      })
      data ={
          item: 'something new'
      }
      it("Should allow inserting data", function(done) {
          chai.expect(Meteor.call.bind(Meteor, 'addNewMenu', data)).to.not.throw(Error);
          done();
      })
  })
  </code></pre>
  
  <p>I read that loginWithPassword is only available in client side of meteor.
  But I see few examples being done like this.</p>
  
  <p>Since loginWithPassword is async I added an async version aswell</p>
  
  <pre><code>describe("logged in admin insertion test", function() {
      before(function(done) {
          Meteor.loginWithPassword('admin@admin.com', 'password', function(err, res) {
              data ={
                  item: 'something new'
              }
              it("Should allow inserting data", function(done) {
                  chai.expect(Meteor.call.bind(Meteor, 'addNewMenu', data)).to.not.throw(Error);
                  done();
              })
          })
      })
  })
  </code></pre>
  
  <p>Is there any other way of simulating logged in user? Am I doing something wrong here?
  Thank you for help</p>