Added metadata cache duration.
- Added new config option and updated documentation accordingly.
- Changed the metadata test to use fluentassertion's comparison for better debugging.