Added test_metadata

- also prioritize ZAP metadata over ZMTP metadata in case application
  uses same names.