tested add and delete rules