add unitest for putpolicy
Merge pull request #79 from coaku/b_xzk_add_putpolicy_unitest

add unitest for putpolicy