Split out the tests in test_apis.cpp.