Made jpa changes for mongodb structure, and edited tests.