tests: add helper functions to emulate udp messages
merkle: lazy hash algorithm using ordered sets