Add testIComponent.cpp for test IComponent.