Add test for dom configuration retrieval.

This added some constants in the test file and changed the way the mongo
script is accessed.
Remove unnecessary TODO in dom test.
Merge branch 'mcomella/test_dom'.