Adding tests for editPwd