MDL-45565 core_message: Added unit tests.