Add test for a better invalid ruleref error