Add unit test for batch computation

Cobertura was complaining about line and branch coverage.