added cp and create subdirectory
using getbasedir for utf8 test