Add tests and tox.ini

You might be interested in this; I sent a PR to @bufordtaylor's repo as well.