notification refactor testing