Implemented tests for the app.login method