Add tests to ensure domain notifications are sent correctly

Change-Id: Iac63214f5675f5ecae15ca848ec8606c8f1ee6ca