Please rename to `test_resample_invariants` or something.