Grosjean replacing Heidfeld as Pirelli tester