generate strip, resolve, retain dirs on test dir
refactored templates and change strategy on appending root nodes to parent