Add test for getThumbnail
Add retry logic to all methods (fix #5)