Add unittest of utils.crop

First attempt at a pull request and at a unittest.  Started with utils.crop as within my ability.  I ignored at least one failure mode that the crop function doesn't contemplate (width < len(suffix), et al).