Minor fix
Fixes and unit tests for AuthenticationController