> Probably not all tests need min_cost = true to run. Can we try to remove it from setup / teardown and have it explicitly in the tests that need it? Make sure to follow the git history when it was introduced to make sure we are not modifying the intent of the tests.

hmm it was introduced to speed up the tests. https://github.com/rails/rails/commit/c2c1ecb05e98dacab04f02c08cc3876de436e4dd