Check for GhostScript in this test which needs it

This should fix #3259 by only running the test that needs ghostscript when it is available.