Tests for mkdirall

A red herring. I thought this might be responsible for #969.