Code

fix curve test. curve with empty pathvector is *not* closed.