fix-bounding-box: Refactor custom preprocessing in tests