Test cases of extract api