Add json response checking to controller tests