This was creating data in the Notifications table but the funcetion under test was - now the timestamps are in the past - looking in the NotificationHistory table. Freezing the time of the test fixes that.