This only tests for the absent of expected errors. Unexpected errors should also be caught (that is, `err != nil && !test.hasError`).