Ferrari retains Dino Beganovic as test driver after F2 exit