test code using flickr ap