Added some tests and fixed the mysterious bulkInsert problem. Still need to fix insertId and rules.