Police cadets carried out test purchase operation alongside West Yorkshire Police