Collapse some test cases of getSelectedText() and check both values of argument for each of them