test iam key retrieval