rewritten reset password tests