added tests for messages