fix tests
don't crash if no rules