Test for the create_salt function