Fix authenticate test.