Friend had this same problem, and really the phone is only recognized by mi flash after doing the test point, but to install rom stock you will need an authorized xiaomi account, on the Internet there are several people who have this account. In my case, I decided to get my phone back to life...