functional test for routing