Add coverage report to testing
Remove global i