First test for 'tools.edit', refactor