Finally fix metadata test