Fixed loginView unit test