Method and apparatus for securing digital information on an integrated circuit during test operating modes