added a test for deactivateEffect