added test cases to test multiple curve segments