Actually I remember writing a test for that, I wonder what happened.
I don't think this test should be part of this pull request though but maybe part of a bigger refactoring.