test for directory mutation