import/export module: fixed bug when exporting test nodes. Now only needed nodes are exported.