Added test for login controller.