testing hasing for db