add testAndSet command