fix case where testing is not enabled in modulestool.py tests