Protecting an integrated circuit test mode