added some tests and mkdirp closes #2 #3