B-test MMD added

@karlnapf please have a look!