integration testing for messages