fix some stuff on testing own json apis