chore(tests): fixes unit test failure to create user

A test was using an old function to create the user salt and the function
output more bytes than the salt field could hold. Here we replace it with
the correct function.

Fixes #7303