Test environment with guard and notifications.