Unit tests  for publish settings file code