Fixed a bug in the testsuite that causes an incorrect number of enableInterrupts() to be called upon some test failure