configured metadata to be transmitted on initial handshake, added unit test