Refactering statistics_page_spec.rb