Fix extension installation unit tests to not rely on hardcoded string

We shouldn't rely on the actual UI string since that means the unit test would fail in other languages.