Updated mongo adapt, fixed most tests.