Compile fix for tests, DispatchOnLaunchedEvent moved.