Is there a systematic way to understand what test statistic to use ahead of a random variable $X$ with population of $n$ and parameters $\mu$ and $\sigma^2$ that may or may not be unknown?
For example, if $n < 30$, $\mu, \sigma^2$ are unknowns, I should use $\frac{(n-1)S^2}{\sigma^2} \sim \mathcal{X}^2$; but if $n > 30$ I should use the approximation for $\frac{\bar{X}-\mu}{s/\sqrt{n}} \sim normal(0,1)$, etc.
I never know what test to use from $t-student$, $normal$ and $\mathcal{X}^2$ for these parameters. Is there a way to always know?
Apart from the above mentioned link, here's another link that I think you'll find helpful: The Link
It's relevant summary is as follows:
Note: Italicized part is not mentioned in the link.
Addendum:
For $\chi^2$ test,