Fix Issue #22 (rule lookup does not count inheritance)

Does pass tests