added test for edge case in which the second input value is smaller than the first