add trainer authenticate test