could this all live in tmp_copy_to_file.test.cc? Having a test not in a file mapping to the header directly makes it a little more convoluted when doing reorganizations and the like.