refactering mark_pages_spec.rb