update mongoose uri construction in tests to be more flexible