Test win against Pakistan too close for comfort, admits Smith