fix bug of run test and check_component_type