add testAndSet command
use Client.PostForm to post form
Merge pull request #2 from xiangli-cmu/master

add testAndSet command