PHP: Testing GIST functionality