please test `getRangeBegin()` and `getRangeEnd()`