test class to construct graph and superrules at once