add tests for ComposeMessage.py