added testApi()