Added tests for JsonResponse