Add test for trim class