added more tests for store file. fixed issue found while testing