Write test for getAll for messages
Test basic scenarios for messages model