Add test case for garray and remove some deprecated functions