also added test that number of total top-level rules should be less than 10