Bug 18501: (follow-up) Use t::lib::Dates::compare in tests