Fix 'age' key to update on retries
Fix unit tests after adding extra argument on put_json
Improve logging in federation handler.