Added more tests for the batch inserter.

Refactored the callback on the inserter's queue method and removed
the test.js vanilla Mocha test file used to ensure Mocha was working.