More test database setup, much more hooks for notification events