Fix mkdir error in block_test.

Closes #3.