added tests for JsonResponse.