The first case has the same null hypothesis, i.e., that y follows a random walk without drift, except that we include alpha in the regression. The population value of alpha is zero under the null hypothesis.
In the second case, we hypothesize that y follows a unit root with drift, so that the population value of alpha is nonzero; we do not include the time trend in the regression.