add some unit tests for the api class
more api tests