HH-31965 xml comparing and compatibility check helpers, TestCase mixin and tests for them