The database must currently be created by hand and the name handed in via -DAPI_TEST_DB='sqlite:...'.
Reorganise the API reverse tests and extend the checks for the output format, testing for all expected fields.