Rspec pages

Worked on some test, refactored some of the search stuff in the pages controller.