passing test for either/or key batching