Fixed tests for authentication