Authentication tests

- Added missing authentication controller and service tests.
- Fixed failing authentication tests.