Implemented top posts and referrers with unit tests