fixing popularity sort test. Also, added upvote retrieval methods to Viewable interface