Modernize pages_controller_test