trim unit tests