use env param as similarity judge flag
update test case
adjust algorithm