Add coverage settings
Add workaround code for coverage