add unit test to change pageSize