Added a test case where beginning and ending values are the same