add updatePassword and fix some tests