Fix rspec deprecation warning

'Accessing shared_examples defined across contexts is deprecated. Please
declare shared_examples within a shared context, or at the top level.'
Fix rspec re-definition warning

'Shared example group has been previously defined'
Merge pull request #1260 from opf/fix/rspec_warnings_for_accessibility_specs

[FIX] RSpec warnings for accessibility specs