Test case for the insertelement operation.