Add support for testing with tox

Fix bug supporting newer webassets versions.