Added specs and fixed outputing of votes count in the posts view