Rule Engine and Unit tests