Add unit test for component inheritance.