testing of api