Moving visa tests online could open the door to fraudsters and criminal gangs, a letter to government warns.