adds integration test for login