General Schnorr test