Add inheritance test