Adding a failing test -- we create files in nonexistant directories!
Fixing mkdir issue.
merge upstream