Added unit testing of authentication controller