Added test cases for explain() and batchSize().

The batchSize() test currently fails but will start working once #544 gets
merged.