Improvement to routing publisher test case.

Signed-off-by: crynobone <crynobone@gmail.com>