Modified linear interpolation and added unit test
Updated with interface name change