SHDP-374 Fix store overwrite

- Adding use of overwrite flag for file create
- New tests checking that we don't get
  multiple file opens with overwrite flag