add mongodb service in travis an fix strict warning