testing if pagination works fine