Flex PCB module test socket with opening in lid for optical components