Rossi set his 1m55.162s with a minute left on the clock, edging Marquez, who held first for the final three of the test's eight hours, out by 0.018s.

The Italian's team Yamaha tested a new aero fairing on the YZR-M1, and both of its riders ended up in the top three with Maverick Vinales taking third.

Vinales was leading the way for the majority of the session and, while he improved after he lost first place, the 22-year-old still ended up third.

Jorge Lorenzo took fourth, while his Ducati teammate Andrea Dovizioso was only 11th. The Italian trialled Ducati's radical new fairing, that was introduced for the Czech Grand Prix and was used by Lorenzo over the weekend, for the first time.

Tech 3 Yamaha's Johann Zarco was fifth followed by Cal Crutchlow (LCR Honda), who was close behind Vinales in second in the early stages but ended his day at halfway point to rest his back, which is still not fully healed from his Saturday FP3 crash.

Marquez's teammate Dani Pedrosa was seventh, beating Jonas Folger (Tech 3 Yamaha) by 35 thousandths of a second.

Andrea Iannone was the fastest of three Suzukis, as the two full-timers were joined by test rider Takuya Tsuda.

While Iannone crashed in the morning and spent the majority of the day on the bottom half of the order, a late improvement put him ninth, as Alex Rins and Tsuda were 14th and 18th respectively.

Aprilia's Aleix Espargaro completed the top 10.

KTM duo Pol Espargaro and Bradley Smith, the former scoring the team's first top 10 result on Sunday, were 15th and 16th respectively.

Ducati satellite teams Pramac, Aspar and Avintia did not take part in the test.

Test results