Initially brought in #4472 (review)
TestBoxArea, TestBoxIoU and TestGenBoxIoU are all very related and perform a single test (or two if we consider the newly added JIT test).
We can probably refactor the implementations so that they follow the same base class, and use pytest.parameterize, so that each configuration is displayed as an independent test.
cc @pmeier