Update gendefaultparam, policy tools and corresponding test case: fixbug follow comment #9 issue 391