Implemented an unit-test for the transformer