fix inheritance problem by adding the inherited methods in the search loop to generate the permission predicates for them in the subclasses.
one more test for inheritance.