Tested longest prefix match