refactor messaging tests for resource transformers