added tests for mongo, entity and mapped entity