add tests for message commands and message cache