Ghostscript modernize and add test