add a test for new directory behaviour