Return error code is any tests fail.