More work on router tests.
Closes e9c3022ef8e4045267a5763f34c4966741abc06a.
Completd policy chain support.
fixed controller config loading