Issue coveralls

This pull-requests adds 100% coverage for all the code and unit tests.