Completed findMinValue function
Added tests for findMinValue function