Test of PIN cancel function