refactoring admin_categories_pages tests