Z-test is chose to do the hypothesis testing. Since the purpose of the test is to compare the proportion of two groups and see if there is a significant difference between two groups, both z-test and t-test are good to use. However, with a big number of observations (>30), z-test is more suitable for this test.