update doc and tests