added start of a unit test for api class