Exits with 1 if tests fail
Fixes tests.