Tests for date difference, row comparison