Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.