For enhanced debugging, do not erase test files
Minor change; use single quotes around mode in "open" function