Issue #725: Add gst hook and test case.