update of flickr api + add of unit test to check the serialization + code cleanup