Unit test for datastore with non-branch head