I'm having trouble finding a simple proof of the fact that
If $f$ is locally integrable on $\mathbb R^n$, and $\int f \phi = 0$ for all test functions $\phi$, then $f=0$ almost everywhere.
Terrence Tao offers this as an exercise, with the only hint being to use the density of the test functions in $L^p(\mathbb R^n)$. My textbook (Duistermaat & Kolk) only has a proof of a much, much more general result, which I can't really wrap my head around, but it seems to use the density of the test functions in $L^1$.
I thought maybe it could be proved something like this, where $\phi_n$ approximate $f$ in $L^1$:
$$\int f\phi_n =0\implies \int f^2=0\implies f=0$$
Where the integrals are possibly taken on compact sets, and the second step is justified by taking $n\to\infty$. Can this reasoning be made rigorous? Or, is there a simple proof of this result, using only the density result mentioned above?