completed pagination rspec functional tests