add test for inheritance