main() exits with a non-zero value if there are failed tests