Add test for mem leak in confdb/cmap