expanded integration test for login