Add page-rank tests with graph file, Pagerank refactoring