Reviewed trim unittests

These are the tests related to the changes made to the library by the trim functionality