Added test case calculating the difference between current and previous number