Fixes tests in loginFormControllerSpec