test curve stripping function