Add unit testing, update tox and Travis CI

Travis CI is still failing unfortunately, but it's a step forward.