added inheritance test