fix test for JSON warning