update package file
Added support for template
fixed testDir bugg