Testing Hypotheses by Regularized Maximum Mean Discrepancy