Added test for character insertion at cursor