Add regression tests for XML mapping of domains

Pavel Stěhule