adding one unit test for settingwriter class