B-test MMD added