Added test for mkdirs()
Bugfixes for mkdirs tests and implementation