Added test case for date swapping.