Added message formatting to chat, classes and tests
Mocks in testing