Toyota turned the tables on Audi in second free practice ahead of Sunday's World Endurance Championship finale at Shanghai.