Test cases for pattern routing helper.