Use shared examples for rspec tests