A nonparametric likelihood ratio test