Use operators to handle actions other than RESTRICT / NO ACTION.
Update test for new cases.