fixed expression in runtests.py for failure testing