fix tests, and more assertions for image cropper