added more test cases to the inheritance test unit