Added test provider #2, waits for main thread to publish event.