Move markup escape tests to test framework