South Africa's top-order stumbled against Pakistan's pace attack as the first cricket test headed towards an exciting finish after Marco Jansen's six-wicket haul had set the home team a tricky 148-run target. South Africa are three-wickets down and are still 121 runs behind.