Pakistan came into the fourth day of their first test match against hosts West Indies needing another 139 runs to win with seven wickets in hand.