Refactored batch tests to use CountDownLatch instead of boolean static variables to monitor execution.
Changed asserts for CountDownLatch.
Merge pull request #157 from radcortez/master

Refactored batch tests to use CountDownLatch