Likelihood-Free Hypothesis Testing And Applications Of The Energy Distance