agent: install/use/remove key tests