Test failure was not reflected in exit status of tests.py

Fixes #454. This should fix travis.sh.