test transformation from/to twisted curve