Added remainder of api functions to api unit test.