laterthan fix and acceptance tests

Current state makes it useless.

Redmine: https://dev.cfengine.com/issues/6530

Please backport to 3.6.x for inclusion in 3.6.2.
You don't document, in the function's description, that the day-of-month is also 1-based.
s/month/month and day within month./.