Added a test to check that an error is thrown in case the user downloads non unique filenames