Bug fix if a test function creates a new variable in the module table