add test suit for trim