add test for message endpoint