Let $X_{1},\dots,X_{n} \sim Unif(0,\theta)$ independently. Show there exists a UMP size $\alpha$ test for testing $H_{0}:\theta=\theta_{0}$ vs $H_{1}:\theta>\theta_{0}$.
My attempt:
I attempted to show that the distribution is of increasing monotone likelihood ratio by computing $$\frac{f(X_{1},\dots, X_{n}\mid\theta_{1})}{f(X_{1}\dots X_{n}\mid\theta_{2})}$$
This computation gave me: $$\frac{f(X_{1},\dots, X_{n}\mid\theta_{1})}{f(X_{1},\dots ,X_{n}\mid\theta_{2})}=\frac{\theta_{2}^{n}I(X_{(n)}<\theta_{1})}{\theta_{1}^{n}I(X_{(n)}<\theta_{2})}$$ This already confuses me because I'm not familiar with what happens when dividing indicator functions. Moreover, this does not seem to be a non-decreasing function of our test-statistic $t(x)=X_{(n)}$, which, according to my notes, means we cannot apply the Karlin-Rubin theorem for finding a UMP test. Since I get stuck here I cannot prove that there exists a UMP size $\alpha$ test and I can also not find its form.
Question: What is going wrong in my approach above and how can I solve this question?
Thanks!