added rspec tests for Page Editor