Test for adding a file