UserServiceTest: Added tests for loginUser method.