According to CollegeBoard.org:
Answer: "To estimate the probability of observing a value as extreme as pˆ given p."
Explanation: "The test statistic for a one-sample z-test is the distance, in units of standard deviations, between the statistic and the given parameter. From that distance, probabilities (a p-value) can be calculated and a claim can be assessed."