Add the tests  for the metadata builder.