Test mongodb setting