Ensure photo has UUID in xattrs when creating a Photo

Refactored the tests to account for the differences in a photo without
any metadata (including UUID) and one with minimal metadata (only UUID).

Tested-by: Mark Somerville <mark@crocodile.is> [Arch, MRI 2.1.3]
Signed-off-by: Mark Somerville <mark@crocodile.is>