Integrated circuit comprising a test mode secured by the use of an identifier, and associated method