Pakistan wins toss elects to field in first test