Added tests for unpublish view