Fixing insertText test case