authenticate in pk factory test