Add gcoverage support and a test for it