curve write testing