Fixed apitest methods.