Refactored out flickr query creation to a method for testability  + authored test for query creation