Tests the secret function of a given class