login fix for tests