fix for rspec 3 due to deprecation of share_as and share_examples_for