Make tests.__main__ return a proper exit code upon failure