Have return code indicate whether test run was successful

Right now, running the tests via the tests/__init__.py always returns
0 (success). Have it return a failure code if the tests fail, so it
can be checked by automated systems.