adds test for creating files in directories