Invalid device signature error

This seems to be the most comprehensive explanation of the cause of false positives from the loopback test on some CH340-based boards:

Additional discussions:

I have personally reproduced this phenomenon on my CH340-based boards.