Add UnitTest Method FinishSetting

Add UnitTest Method FinishSetting