add test case for checking stale path for route with multiple flaps of channel; fix bug