Jasmine + Sinon tests for login. #9