added a trim and extend test