Refactor of unitTest and model programSettings