hopefully fixed bugs with recent scripting changes to DoCheck/DoRun tests scripts