nit: We could loop through the apps looking for the one we expect and break at that point, and then after assert that we found something. This would save us from looking at all 10 apps each time, when the expected one is likely near the top.

This isn't a critical change, but I thought I'd point it out as a suggestion.