Refactoring MMD into instanceable Pods library, porting test suite to Mocha.