Generalize rational_interp_curve for any degree, add more unit tests
Degree 4 test for rational_interp_curve