Put ellipsis into span

Also adds tests for disabled prev/next buttons at first/last page