added test and updated mongo integrated routes