test for batching a function that returns NULL