Add coverage measuring in tests.