purge before running each module test, to avoid problems with modules that were already loaded
rely on 'module list' for determining list of loaded modules, for all module tools; stop setting $LOADEDMODULES empty if its not defined