Delayed hiding of alert flash messages with tests