Add more tests on inheritance