Add test for creation of files