Fix some issues in pages_controller_spec.rb