Completed bulk insert implementation and unit tests