check both get_core_count and get_avail_core_count in unit test, add debug info