rspec shared examples improvements