fixing tests for #690 so that they do not fail on the 31st of a month