fixing batch insertion so that it is actually faster than serial, with tests and benchmarks