Add integration test for messages