Improved and expanded CDS test utils; updated CDS tests to use new utils. Reviewed-by: jiangli, ccheung
Reviewed-by: coleenp, gtriantafill, mseledtsov, iignatyev, dholmes, dsamersoff
Co-authored-by: Ioi Lam <ioi.lam@oracle.com> Reviewed-by: stefank, drwhite, tschatzl, jiangli, iklam