test: refactor notifications helper