test: fix JSON decoding