LinkRelay: Fix tests to work with arbitrary order.