Desktop runs pretty fast, and occasionally this returned before the app was registered as displayed. The test that was affected directly was test_launch_twice, which checks if the displayed app is already running.