We want to use this function in our guardfraction unittests, so make a test_helpers module and move it there.