fix initialization of testing variables, print MODULEPATH in warning message