[api test] Fix getting non-existant keys