agent: fix install key test