add tests to TransformerSpec