Rule service tests
Merge https://github.com/egreene/PracticeGDVP
Some rule compilation methods modified to match new setup