add UT for LTR setopton and fix crash issue
Merge pull request #1324 from ruil2/ltr_check_update

    add UT for LTR setopton and fix crash issue