Add test on inheriting