Refactoring the PagerView tests