Fix bug and implement test for insert()