Unbroken stand puts champions on course despite three-wicket burst from Migael Pretorius