[step:Identify the limiting distribution of $\|V_n\|^2$ as $\chi^2_{k-1}$]Let $V := D^{-1/2}W \sim N_k(\mathbf{0}, P_L)$ where $P_L = I_k - \sqrt{\tilde{p}}\,\sqrt{\tilde{p}}^\top$ is the orthogonal projection onto $L = \sqrt{\tilde{p}}^\perp$, a $(k-1)$-dimensional subspace.
The map $v \mapsto \|v\|^2$ is continuous on $\mathbb{R}^k$, so by the Continuous Mapping Theorem,
\begin{align*}
X^2 = \|V_n\|^2 \xrightarrow{d} \|V\|^2.
\end{align*}
It remains to identify $\|V\|^2$. Since $\operatorname{Cov}(V) = P_L$ and $\mathbb{E}[V] = \mathbf{0}$, the vector $V$ is a centred Gaussian with covariance equal to an orthogonal projection of rank $k-1$. By the [Quadratic Forms and Idempotent Matrices](/theorems/1441) lemma applied to the standard $N_k(\mathbf{0}, I_k)$ distribution (we supply the details next), the squared norm of such a Gaussian is exactly $\chi^2_{k-1}$.
Explicitly: let $\{u_1, \ldots, u_{k-1}\}$ be an orthonormal basis of $L$ and extend to an orthonormal basis $\{u_1, \ldots, u_{k-1}, \sqrt{\tilde{p}}\}$ of $\mathbb{R}^k$. Let $Q := [u_1 | \cdots | u_{k-1} | \sqrt{\tilde{p}}] \in \mathbb{R}^{k \times k}$ be the orthogonal matrix whose columns are this basis. Define $Z := Q^\top V \in \mathbb{R}^k$. By orthogonality of $Q$ and the [transformation law for multivariate normals](/theorems/1434),
\begin{align*}
Z \sim N_k(\mathbf{0}, Q^\top P_L Q).
\end{align*}
Now $P_L$ acts as the identity on $L = \operatorname{span}(u_1, \ldots, u_{k-1})$ and annihilates $\sqrt{\tilde{p}}$, so $Q^\top P_L Q = \operatorname{diag}(1, \ldots, 1, 0)$ with $k-1$ ones and one zero. Thus
\begin{align*}
Z_1, \ldots, Z_{k-1} \;&\text{i.i.d.}\; N(0, 1), & Z_k &= 0 \text{ a.s.}
\end{align*}
Since $Q$ is orthogonal, $\|V\|^2 = \|Q^\top V\|^2 = \|Z\|^2 = \sum_{i=1}^{k-1} Z_i^2 + 0$. This is a sum of $k - 1$ independent squared $N(0,1)$ variables, which by definition has the $\chi^2_{k-1}$ distribution. Therefore
\begin{align*}
X^2 \xrightarrow{d} \chi^2_{k-1}.
\end{align*}
For the size of the test: $\chi^2_{k-1}(\alpha)$ is a continuity point of the $\chi^2_{k-1}$ distribution function (the density is continuous on $(0, \infty)$), so
\begin{align*}
\mathbb{P}_{H_0}(X^2 > \chi^2_{k-1}(\alpha)) \to \mathbb{P}(\chi^2_{k-1} > \chi^2_{k-1}(\alpha)) = \alpha.
\end{align*}
This establishes the simple-null claim.[/step]