Moved removeTmpFile() method outside of non-remote test; tmp filling up with remote documents