Added test for authentication success.