fix erroneous return code from tests before tox getting discarded. Fixes #357