add Core.insert unit tests