test csv uploading to a test store via using a private api key
Added comment
Modified error checking, cosmetic changes