Update unit test

- use MongoClient
- use settings.yml to initiate ES node