test: fix tests when running inside Tox