Add tests for new applyTransform behavior.