test password rehash functionnality.