update and created tests for messages