I'd split the extract tests into a separate test class from the cli command tests