I know Z test is applied for Test concerning two proportions.
Let there be two treatments with population proportions p1 and p2 and sample sizes of n1 and n2 respectively. Samples associated with a certain event are x1 and x2 with the respective proportions.
But I applied over the whole population i.e. n1=n2=n.