Fix PreservingIniWriterTest section test case

The test case now tests whether the section order of the ini file is updated correctly and
not whether the section order is preserved

fixes #6625