Write no of failed tests to output