Fixed mongo metadata unit test