Added test coverage.
Added Travis config.