Small fix to allow running the self-tests (eg what's under if __name__=="__main__") in MT mode.
if __name__=="__main__"