add test for chained inheritence