Fixed some tests that failed after changes to rule text generation.