developing:fix generate sign; add test