Add basic tests using 'unittest'

This also sets up '.travis.yml' for use with travis-ci and coveralls.