Ed: add test for the last day of a validity pattern