adding API test
added api unit tests
...