inifile.rs : add assertions in test write()