added testing for SetVal and DelVal, and fixed SetVal return