more fixes to c++ api calls; small changes to test suite to avoid empty datasets