don't use ioutil.ReadAll
Fix test
replace outil.ReadAll with json.NewDecoder