add test case for inherited fields