make some changes for the junit testing of inheritance