Add test to check that directories are created using the key hash function.