use canonical #controller_path logic in controller test cases
Merge pull request #10478 from cainlevy/patch-1

use canonical #controller_path logic in controller test cases