Wrote unit tests for the current functionality

Wrote a bunch of passing unit tests for functionality I've already
implemented.
Config for Travis CI