fixed test to use gd