Add code coverage to template

Fixes #2