added tests for datastore