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.
Merge pull request #72 from kepstin/tests-return-code

Have return code indicate whether test run was successful