Added `wholeWordMatch` argument for `testSelection()` for checking if selection is a full word when ending the selection (fixes #2)