fix: fix failure in client edit user, add tests