add json parsing guard to test