I'm having trouble to find a critical region for the MP test. I know the r.v $X_1,...,X_6$ are iid. following the uniform distribution $U(0,\theta)$, $\theta>0$. The uniformy most powerful test was built for the hypothesis $$H_0: \theta = 1 \quad H_1: \theta \neq 1, \quad \alpha = 0.125.$$ We want to find the critical area for this test.
My approach: I found the testing statistic: $T(x) = max(X_1,...,X_n) = X_{(6)}$, and then tried to find the ciritical value by using the significance level $\alpha = 0.125$ and the property that $$\alpha = P_{H_0}(T(x) >k) = P_{H_0}(X_{(6)} >k) = 1 - P_{H_0}(X_{(6)} <k) = 1 - P(X <k)^n = 1- k^6,$$ because the $F_x(t) = \frac{t}{\theta}$, so under null hypothesis $F_x(t) = t$. Then my $k = (\frac{7}{8})^{(\frac{1}{6})}$ and the critical area is $(k,\infty)$, but I knwo that is correct answer is $X_{(6)} \in (0, \frac{\sqrt{2}}{2}) \cup (1, \infty)$.
The thing is I think my critical area is wrong, because it doesn't take under consideration the fact that $x \in (0,\theta)$. I read somwhere that I should use $P(X_{(6)} \in (0,k)) = \alpha$ but I have no idea where it comes from and if it is correct.