add test for getMessages
start trying to use esqueleto