tests: more stringent error checking in logs