Refactoring messages for unit tests.