Additional RulesParser unittest

    This also implements equals and hashCode for DataCategoryFlag and
    Rule. Because swing's Border class doesn't seem to implement
    equals(), DCF now holds the border color and compares that instead.