api: update

add ExpectNew alias NewExpect
change retun value expect unset_attr
test: add more
doc: change comment style
api: make functions private