added test for trim parameter position