test: keys: Fix for keys return value parsing