run test should return error count