Tried to switch from stable to testing

What commands did you run to switch branches? The correct method is:

sudo pacman-mirrors --api --set-branch testing

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syu