testing/server: simplify the failures logic