removes vendor directory and tests for both, catalog item and tree node children