use JSON decoding in the tests