In a case-control study, in four age groups, the total numbers of observations are 74,84,87,76, respectively, and the number of cases are 23,24,22,29 respectively. Test the null hypothesis that the proportion of cases is the same and equal to 0.4 in each age group.