Updated tests
Promisified Login function