Takaaki Nakagami had MotoGP world champion Marc Marquez in his slipstream when posting the quickest lap at testing for next season on Thursday.