add inheritance test