Add unit test for batch computation

Cobertura was complaining about line and branch coverage.
Satisfy cobertura

I have line coverage of only 90% because of where I catch the
SQLException. But at least this way I delete the tables if there is a
problem.