fixed bug in TransformingDiffEngine
additional test