test_failure.py: make the test a bit more strict (fix by @jszakmeister)