move testfile from open to close