[minor] Expose the Transformer instance
[test] Adding tests for custom parsers and transformers