test salt method