testcase for class d extends class c