Added gen_salt tests