Tests for inheritance.