add func setValueWithTag
refine test code