IndexError tests for insert