added comment pagination and test cases