Fix tests for updated mongodb adapter