Improved test coverage. Added Coveralls badge.