In a linear regression model $Y = X_1 \beta_1 + X_2 \beta_2 + \epsilon$, we use ANOVA to test null hypothesis $H_0 : \beta_2 = 0$. Denote $RSS_1$ as the sum of square of residuals under the submodel $Y = X_1 \beta_1 + \epsilon$, denote $RSS$ as the sum of square of residuals under the full model $Y = X_1 \beta_1 + X_2 \beta_2 + \epsilon$, we choose $\frac{(RSS_1- RSS)/\text{df}}{RSS/\text{df}}$ as the test statistic and calculate p-value.
Here is my question: since the OLS estimator $\hat{\beta}$ has a $N(\beta,\sigma^2(X^TX)^{-1})$ distribution, why don't we simply test the null hypothesis $H_0 : \beta_2 = 0$ through $\hat{\beta}$? For example, we can take $\| \hat{\beta_2} \|^2 / \{ \hat{\sigma^2} \sum_i [(X_TX)^{-1}]_{i,i}\} $ as a test statistic, which takes a t-distribution under null hypothesis.
In fact, this is the method of getting a confidence interval of $\beta$. Why don't we test the hypothesis through the same method of getting confidence interval?