Fix the backward selection on makeSelected helper

This fixes support for testing text selected backwards