newapi: New API test
'db' file is a test database
