[WFCORE-125] Pull some changes from the model tests from EAP that were missing in WildFly.
[WFCORE-125] Add additional core model tests for additional permutations and add cache resource registrations under principal-to-group.