Added a unit test. Added Travis and coveralls config files