added test for insert