Add a unit test for LoginCtrl