make the unit tests return the number of failed tests