Improved mongo adapters and tests
Added testAwaitMessages