Test for password hash