added test to gd library