ENH: tiny fixes on _crop_mask + test cases for this new function