Testing mongo code