issue #603

Unit test to show the problem with duration when the x and y values to and from are identical

applying changes from commit b76194bfda04bb4e7eddbeebf00a1e49db792806 will acheive success state