test api in process