improve apitest