test findOne works correctly with datastore id's passed in as criteria