add test for setnx