Add Rules Testing Code