Add tests for component inheritance