Added allowoverwrite for unload statement, and fixed test for unload