Mercedes' Nico Rosberg was fourth fastest, ahead of the Ferrari pair of Fernando Alonso and Felipe Massa in cool but dry conditions at the Shanghai International circuit.