Added test for length of salt from gen_salt