improve the test case for ElementTransformer::transform