Added a test for adding file to newly created directory