Fix parameters mongodb and unit tests

Fix default config parameters mongodb.

There are several commits with the merge.