tests: Use xattrs in test_metadata_recovery

Test if extended attributes can be recovered from metadata.