test that reset password restores account