B-test MMD added

@karlnapf please have a look!
A minimal API example would be nice