Added unit tests for authentication/login