t/peek_uri.t: make message check generic