added test case for insert