This hurt my soul, but i moved tests_passed out to a global variable because it made the code that much clearer (and harder to mess up the or statement)