Update Insert, copied over buffer_test to make sure I didn't break anything