Test added for previous fix in CakeRoute.php. Refs #2797.