Rewrite test for Icinga\Config\PreservingIniWriter

refs #6011