Fix handling of broken tests.