fix .json test code path