add unit test with Datastore