CMS-3584 Create tests for portal JsController.