Adding check for class being interface for rule creation in dtest contrib lib

As I need to instrument not just class but interface as well I propose this change to be added to dtest contrib library. It check whether the Class (clazz) is interface and in such case the rule will be created in the way.