Return number of failed tests as exit code