Add selector test to static-pages test
Refatored rspec tests