Added tests for deleting files