Check permission with github api
Refactory flickr tests