Fixed for-loop concurrency with store test

- helper.genPost now gets called multiple times