Testing methods for the mitigation of non-invasive attack classes against cryptographic modules