add: datastore logic add: tests for store