A General Test for Interaction Modification