Refactor single_message_tests to use common.hpp