Add retry logic to all methods (fix #5)
Fix tests for retry logic