add a test suite

Hi Maxime,
Working on some upgrades to the library and didn't want to do it without having a test suite in place, so here it is. 100% coverage! To run the suite, just install tox and run it in the top level directory.