Added test: TestMessage - get_messages. And added common func check_status_and_keys