t-test for one parameter in linear model

The t-test for testing $H_0: β_j = β_{0j}$ against $H_1: β_j \neq β_{0j}$ (for some particular $j$) is to reject $H_0$ when $$ \begin{align*} \frac{|\hat β_{j,\text{MLE}} - β_{0j}|}{\sqrt{\hat σ^2{(X^T X)\inv}_{jj}}} > t_{n-p}(α/2) \end{align*} $$ where $\hat σ^2 = \frac{1}{n-p}\|Y - X\hat β_{\text{MLE}}\|^2$ is the unbiased estimator for $σ^2$. (Derivation)

This gives a $(1-α)$-confidence interval for $β_j$: $$ \begin{align*} \hat β_{j,\text{MLE}} \pm t_{n-p}(α/2) \sqrt{\hat σ^2 {(X^T X)\inv}_{jj}}. \end{align*} $$

We can rephrase this as nested models: $$ \begin{align*} Y - β_{0j} X_j = \pmat{X_1 & \ldots & X_j & \ldots & X_p} \pmat{β_1 \\ \vdots \\ β_{j} - β_{0j} \\ \vdots \\ β_{p}} + ε. \end{align*} $$ This is equivalent to the F-test for nested models. (Derivation: TODO)