MDL-45594 core_message: added unit tests