attempting to solve the login during tests problem