how to perform api testing