update the function doc, add user table selection test