The extended target Gaussian inverse Wishart probability hypothesis density (ET-GIW-PHD) filter overestimates the number of targets under high clutter density. The reason for this is that the source of measurements cannot be determined correctly if only the number of measurements is used. To address this problem, we proposed an anti-clutter filter with hypothesis testing, we take into account the number of measurements in cells, the target state and spatial distribution of clutter to decide whether the measurements in cell are clutter. Specifically, the hypothesis testing method is adopted to determine the origination of the measurements. Then, the likelihood functions of targets and clutter are deduced based on the information mentioned above, resulting in the likelihood ratio test statistic. Next, the likelihood ratio test statistic is proved to be subject to a chi-square distribution and a threshold corresponding to the confidence coefficient is introduced and the measurements below this threshold are considered as clutter. Then the correction step of ET-GIW-PHD is revised based on hypothesis testing results. Extensive experiments have demonstrated the significant performance improvement of our proposed method.