Testing routing table lookup algorithm.