Fix bug in disabling of tests.