api-test: clean up, use subtests

Created by  Graham Christensen  on April 28, 2021
XNXX4WCQ7KIP24TIF6KQVZLCHM4R25MSSL4IFLFHNUBW5FQSTPWQC
Change contents