test permission pagination and json root change