Added test method to login and return auth key.