client tests: exit with code 1 if a test failed