tests for empty lists with prev/next