Added mocha mocks and stub login for controller/integration tests