Fixed RecursiveTransformer, added unittest