add initializesetting unittest