fix tests; add tox support