Fix for test TestCompEventCapture