Unit tests for content repository paged queries; amends to fix ordering issues