[testDBClientUser] Unify duplicated code in tests for updating a user.

In addition, add a missing check for DB contents in test_updateUserWithoutPrivilege().