New unit test to check pagination behaviour