Add code coverage tool

In preparation for issue #36