isn't it possible to directly test the `key` instead of the `CAPI[key].toString()` ?