Unit tests for notifications handling