Adding Travis config, unit tests.

Fixes #1.
Fixes #2.
Made tests pass artificially, added coverage.
Merge pull request #3 from rhyolight/travis-tests

Adding Travis config, unit tests.