replace deprecated method LdpTest.hasLinkHeader() with better implementation