WCM-108 Adds test for visited rule