Adapting to CursorPage<T> and fixing jUnit setUp()