Hi. Was investigating what I has thought to be a bug in org-agenda, but turns out that it's something else in my setup. Ended up with a unit test in the process, hope it's useful.

--
Dmitrii Gerasimov