Manually tested then TDD'd the mongo stuff to correctness