[FIX] Typos
[FIX] The cursor might not be usable in teardown

If the test failed on SQL, the curor would be rolled back and we would
raise on the read, not removing the files. Keep the reference locally.
[FIX] These would not have been run
[FIX] Preliminary race condition fix
[FIX] Fix race conditions in file processing
[FIX] Typos
[REF] tracking number acquisition
[FIX] Correct function name