wrote tests for transformer base class