better mutation of the closure in tests

fixes the tests on not-sqlite