Pagination replacement

I added tests that checks the navigation of pagination. I also checked to make sure the formatting was consistant.
Could you rename this from "x" to "i"? Also, below could you change it from "self.x" to "post", there's no need here to attach the Post to self.