Make info test less fragile to changes

Makes the info test compare against actual metadata rather than hardcoded
values.