moved extract_test