om: refactor om tests to avoid over-inclusion
om: add tests for all inheritance permutations in domain header formatter