implemented complete tests for authentication controller