tests: don't compare exit code to == 1, but to != 0

NUnit returns the number of tests that failed, so we need to
check for "different than zero" rather than "equal to 1".