Testing secret key