unit test for notification module with check