added test for login view