Added coveralls.io support
Added unit tests