test that batches error correctly when passed null