Added some tests for batch jobs