added authenticate test