[liuxia] Add inheritance test.