Test implementation of the interpolation function