basic api skeleton and test suite working