refactored notification tests to use map driven tests