Test inheritance.