Stubbing in tests for page reordering