[minor] Remove the function check in the transformer.
[test] Adding test for incoming and outgoing transformers.

See #7