Was flying with my CFII to shoot some AP coupled approaches yesterday. While cruising down to the airport we were shooting the approaches we leveled off at 2000’ and engaged the HDG and then the ALT modes. Heading seemed to be steady but the plane immediately pitched over and startied diving. We...