[fix bug 1098306] Add coverage support for tests.