fixed counting of failed tests