add test for inherited attribute