test curve fit