Let $\mu, \nu$ be positive and suppose that $X_1,...,X_n$ are exponential with parameter $\mu$, and $Y_1,...,Y_m$ are exponential with paramter $\nu$ and that all variables are independent. Construct the generalized likelihood ratio test for the hypothesis $H_0: \mu = \nu$ verses $H_1: \mu \neq \nu$ and show that it can be based on the statistic \begin{equation} T(X_1,...,X_n, Y_1,...,Y_m) = \frac{X_1+ \cdots + X_n}{X_1 + \cdots X_n + Y_1 + \cdots Y_m} \end{equation}
My approach: The Likelihood function of the exponential distribution is \begin{equation} L(\mu|x) = \begin{cases} e^{-\sum_{i=1}^n x_i + n \mu} & \text{if }\mu \leq \min x_i\\ 0 & \text{if } \mu > \min x_i \end{cases} \end{equation}
For the denominator of the likelihood ratio, note that $L(\mu|x)$ is an increasing function with respect to $\mu$ as long as $\mu \leq \min x_i$. Thus, the unrestricted supremum of the likelihood function is \begin{equation} L(\min x_i | x) = e^{-\sum_{i=1}^n x_i + n \min x_i} \end{equation}
On the other hand, for the numerator of the likelihood ration, since $\mu = \nu$, the supremum is the singular possible value for $\mu$, which is
\begin{equation} L(\mu|x) = \begin{cases} e^{-\sum_{i=1}^n x_i + n \nu} & \text{if }\nu \leq \min x_i\\ e^{-\sum_{i=1}^n x_i + n \min x_i} & \text{if } \nu > \min x_i \end{cases} \end{equation}
Therefore, the likelihood ratio test statistic is \begin{equation} \lambda(x) = \begin{cases} e^{n(\nu - \min x_i)} & \text{if }\nu \leq \min x_i\\ 1 & \text{if } \nu > \min x_i \end{cases} \end{equation}
I know that a sufficient statistic is one whose pdf doesn't depend on the parameter $\mu$. However, I'm not sure how to calculate the pdf of $T$.