remove unused argument to mocked_ctx.
use mocked_ctx instead of calling mock.patch.
collector is no more. No need for mocking ctx.collector.
stricter test for collect()
remove early return when catbox is None from run_in_catbox. We shouldn't reach there if plugin is enabled and catbox is not imported.
better coverage for writeln and add comments to clarify tests