z-test is similar to the t-test, but is used only for large sample sizes, or when the population standard deviation is known. (Note that in t-test the sample standard deviation value is used).
The hypothesis (which is the same as t-test) is tested by computing a z-score, which represents the difference between population means in terms of standard deviations.