rspec tests for pages controller