creating test for multiple inheritance case