Day two of pre-season testing at the Bahrain International Circuit saw Ferrari take over from Red Bull as the pace-setting team in both sessions.