hash password, add tests for 'UsersRegistry'