Test for login controller