made helper util function for interpolating values
+ some test cleanup