handlerutil: add test for checking `URLMovedError`
Created by: unknwon
Adds a test case to test for URLMovedError
when the requested repository name is "outdated". This is happens when a repository is renamed on code host or the external config has repositoryPathPattern
configured.