added initial version of api unit tests.