Add regression test for the case where a Text node from Working Pattern is clicked.