Improve display of error in unit tests
Handle multiple alias in conversion to mongo