Implemented the test of component