converted apidemos tests