Add tests cases for input sanitization by Router#match.