fix definition of test_core_cnt