Replace EVAL with lives/throws_ok; add tests for undef, not supplied and empty string batch_id