Added optional failFast=True to mainTest.