Fix batch_is_ok
Description
The first test in batch_is_ok was always ignored.
News snippet
Fix an internal check.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.