Fixed global variable errors in SimMCTest.py