Charles Leclerc's Ferrari was the fastest on the final morning of Formula One pre-season testing in Bahrain.