A cubic spline extension of the Durbin-Watson test