fix auto/json and add auto/json test