Fix test_set_passcode_by_settings  fail

fix #820