Add test cases for time based comparison
Add test cases for reverse time based comparison