Fix test cases for */# with cursor not on a match