Transformer unit test