In MongoDB adapter, rename fields to be mongo-friendly and add test cases.