Fix CLI API test