Issue #193: First integration with the batch library. Additional tests.