Add json for api and controller tests