[WFLY-3477] Add support for specifying if the original connection is preferred or not for group to principal based searches.

Update the related test case to make use of this.