Added test for TransformRecognizer on root node.
Fix for root node TransformRecognizer delete.