test case for insert