Fixed test for getAppOrError.