Add test for dispatching and dis-/enabling custom notifications

refs #5345