add test for applyTransformation