Update the detect_spec testcase