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.