fix a bug of routing URL.
added a test case for URL routing.