Added numeric rules and tests