Adding confirmNoEmit, confirmNoMatchingEmit functions and tests.