check the number of failed tests