Fixing tests.
Fixing mongo provider and publisher.
Another bug fixed.
Merge pull request #38 from cleandart/fixing-bug

Fixing bug