Rearrange parameters of createDir, Adjust test file to accomodate