added integration tests for messages