Throw exceptions, set non-zero exit code if there are test failures. Fixes #10.