tests for transformer