Extract create_tempfile function to a new test_helpers module
Primitive attempt at trying to decide whether two files were already deduped