use shared examples in rspec tests